package com.ht.web_vr_home_tour_backend.obj.enums;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ht.web_vr_home_tour_backend.config.ObjTypeDeSerialize;
import com.ht.web_vr_home_tour_backend.config.ObjTypeSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

@Getter
@ApiModel("对象类型")
@JsonSerialize(using = ObjTypeSerialize.class)
@JsonDeserialize(using = ObjTypeDeSerialize.class)
public enum ObjType {
    // 改这个类的数据需要修改 ObjTypeSerialize 序列化的内容
    @ApiModelProperty("JPG等距柱状投影全景图")
    JpegRectangular("image/jpeg", "JPG等距柱状投影全景图", "#169aff"),

    @ApiModelProperty("PNG等距柱状投影全景图")
    PngRectangular("image/png", "PNG等距柱状投影全景图", "#169aff"),

    @ApiModelProperty("JPG标准图片")
    JpegImg("image/jpeg", "JPG标准图片", "#1da6cc"),

    @ApiModelProperty("PNG标准图片")
    PngImg("image/png", "PNG标准图片", "#1da6cc"),

    @ApiModelProperty("文本")
    Text("text/plain", "文本", "#fff"),

    @ApiModelProperty("Markdown文本")
    Markdown("text/markdown", "Markdown文本", "#95e183"),

    @ApiModelProperty("mp4视频")
    Video("video/mp4", "mp4视频", "#c9a7de");

    ObjType(String contentType, String contentName, String color) {
        this.contentType = contentType;
        this.contentName = contentName;
        this.color = color;
    }

    final String contentType;
    final String contentName;
    final String color;
}
